package com.cetcs.kmga.dataManager.util;

/**
 * 自定义错误信息
 *
 * @author xutao
 * @version V1.0 创建时间：2017-11-22 10:24
 *          Copyright 2017 by CETC
 */
public class KmgaDefinedException extends Exception {

    private String code;

    private String msg;

    public KmgaDefinedException() {
    }

    public KmgaDefinedException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public KmgaDefinedException(String code, String msg) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
